home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / pc / Open Me for REALbasic 3 / REALbasic 3.2 / Goodies / Development Tools / Utilities / Resource Finder / Jazz up your windows! < prev    next >
Encoding:
Text File  |  1999-05-17  |  2.6 KB  |  61 lines

  1. You can jazz up your project's windows by taking advantage of some additional window styles present in the System.  These are known in REALbasic as MacProdID's, and are editable as the last property in the properties list.  (REALbasic v2.0.1a2 and later)
  2.  
  3. Windows are in groups of 16, and each of the 16 in the group is a variation on a theme.
  4.  
  5. Xmath showed me they were available, (thanks x!) and we spent time trying to figure out the pattern.  With a little help from Apple's web page, (very little, actually) I was able to guess they are accessing the system's WDEFs.  Each group below represents a single WDEF, and the range starts at the WDEF's ID number times 16.  WDEFs appear to be accessed first if found in the application, and then if not found there, it looks in System.
  6.  
  7. You can drag a new WDEF into your project as a Resource.  Make it's ID # 128 and all the normal windows will use it, or make it something else and use the MacProcID the WDEF number times 16 on each window you want to have use that WDEF. (you can have multiple WDEFs in your project, each with its own ID)
  8.  
  9.  
  10. Below is an example of the group of WDEFs I found on my hard drive after using Resource Finder to check everywhere:
  11.  
  12. 0-15 (System)
  13. standard, with no windowshade
  14.  
  15. 16-31 (System)
  16. rounded with black titlebar (a 'la Mac SE, Plus, Classic, the oldies!)
  17.  
  18. 1008-1023 (System)
  19. tab panel window (very odd looking!)
  20.  
  21. 1024-1039 (System)
  22. standard, with windowshade
  23.  
  24. 1040-1055 (System)
  25. titlebar only, can be colored red
  26.  
  27. 1056-1071 (System)
  28. floater scheme.  does not obtain background color when not in foreground
  29.  
  30. 1072-1085 (System)
  31. sideways floater.  also no BG variation
  32.  
  33. 1984-1999 (System)
  34. floater, but can contain text in titlebar.  can be sideways
  35.  
  36. 2000-2015 (System)
  37. a lower resolution floater, can be sideways
  38.  
  39. 2016-2031 (System)
  40. balloons!!!  Great for custom online help!
  41.  
  42. 2032-2047 (System)
  43. totally invisible windows.  Use?
  44.  
  45. 2048-2063 (Finder,REALbasic IDE)
  46. standard floater set
  47.  
  48.  
  49. You may find different things on your HD, maybe some cool stuff that some shareware app tucked away on your hard drive contains, that you've never seen before.  It's like Christmas!  Of course, remember that most of what you found is probably somebody else's, and they could always grumble if you publish software that uses their resources, so take care!
  50.  
  51.  
  52. Notes:
  53.  
  54. • These seem to work best when used as a Document window.  Making them modal or floater will produce unpredictable results.
  55.  
  56. • Since you are accessing System's WDEFs directly for some of these, they may not be there or be what you expect when run on a computer with a different OS.
  57.  
  58.  
  59.  
  60. - Virtual1
  61.